#ifndef MESSAGE_H
#define MESSAGE_H

#include "qtlibs.h"
#include "entitie.h"
#include "user.h"
#include "room.h"

class Room;

class Message : public Entitie {
public:
    Message(Room* room, User* user, QString text);
    Room* getRoom();
    User* getUser();
    QDateTime getDateTime();
    QString getText();

protected:
    Room* room;
    User* user;
    QString text;
    QDateTime date;
};

#endif // MESSAGE_H
